package com.tech.platform.cms.admin.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@TableName("t_tenant_user")
public class User {

    @TableId(type = IdType.AUTO)
    private int id;

    @NotBlank
    @TableField("username")
    private String userName;

    @TableField("password")
    private String password;

    @TableField("salt")
    private String salt;

    @TableField("real_name")
    private String realName;

    @NotBlank
    @TableField("phone")
    private String phone;

    @NotBlank
    @TableField("email")
    private String email;

    @TableField("sex")
    private int sex;

    @TableField("locked")
    private int locked;

    @NotBlank
    @TableField("tenant_id")
    private String tenantId;

    @TableField("ctime")
    private Date cTime;
}
